<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>ROom Manager</title>
<link href="../css/bootstrap.css" rel="stylesheet" type="text/css">
</head>
<body>
<div  style="margin:0 auto; width:960px; height:680px">
  <div class="page-header">
    <h1>客房管理</h1>
  </div>
  <div class="navbar">
  <div class="navbar-inner">
      <div class="container" style="width: auto;">
        <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
        </a>
        <a class="brand" href="/jfinalDemp">首页</a>
        <div class="nav-collapse">
          <ul class="nav">
            <li class="active"><a href="#">菜单</a></li>
            <li><a href="/room/gotourl?page=use">客房入住</a></li>
            <li><a href="/room/gotourl?page=add">客房添加</a></li>
            <li><a href="/room/gotourl?page=type">房间类型</a></li>
            <li><a href="/room/gotourl?page=sel">客户查询</a></li>
             <li><a href="#">提示：${msgbox!}</a></li>
          </ul>
        </div><!-- /.nav-collapse -->
      </div>
    </div><!-- /navbar-inner -->
  </div>
  <div style="margin:0 auto;">
  <table class="table span7">
  	<tr>
    <td>房间号</td>
    <td>房间说明</td>
    <td>房间类型</td>
    <td>价格</td>
    <td>是否空房</td>
    <td>管理</td>
    </tr>
  <% for (room in roomlist) {%>
  	<tr>
    <td>${room.roomnumber}</td>
    <td>${room.roomnote}</td>
    <td>${room.note}</td>
    <td>${room.money}￥</td>
     <td>${room.roomstate}</td>
    <td><a href="/room/gotourl?page=use&roomnumber=${room.roomnumber}">入住</a></td>
    <td><a href="/room/gotourl?page=update&id=${room.roomID}">修改</a></td>
    <td><a href="/room/delete?id=${room.roomID}">删除</a></td>
    </tr>
  <% } %>
  </table>
  </div> 
</div>
</body>
</html>